package concrete_factory;

import abstract_factory.AbstractFactory;
import abstract_product.Archer;
import abstract_product.Magician;
import abstract_product.Warrior;
import concrete_product.HumanArcher;
import concrete_product.HumanMagician;
import concrete_product.HumanWarrior;

// 具体工厂
public class HumanFactory implements AbstractFactory {
    @Override
    public Magician getMagician() {
        return new HumanMagician();
    }

    @Override
    public Warrior getWarrior() {
        return new HumanWarrior();
    }

    @Override
    public Archer getArcher() {
        return new HumanArcher();
    }
}
